import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Menu_button here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Menu_button  extends Menu
{
    // Das Bild vom Menuknopf
    private GreenfootImage menu_buttonPic = new GreenfootImage ("menu_button.png");
    
    public Menu_button()
    {
        setImage(menu_buttonPic);
    } 
    
    public void act() 
    {
        menu();
    }
    
    /**
     * Ruft die Methode createMenu() von NinjaWorld auf und startet das Spiel
     */
    public void menu()
    {
        if(Greenfoot.mouseClicked(this))
        {
            NinjaWorld welt = (NinjaWorld) getWorld();
            welt.createMenu();
            Objects.active = true;
        }
    }
}
